package com.qf.j2105.controller;

import com.qf.j2105.po.Bangdan;
import com.qf.j2105.service.BangdanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class BangdanController {
    @Autowired
    BangdanService bangdanService;
    @RequestMapping("/bangdan")
    public List<Bangdan>  bangdanfindall(){
        List<Bangdan> findall = bangdanService.findall();
        return findall;
    }
}
